<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resources/css/admin/main.css"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/core/jquery.cms.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/admin/main.js"></script>
  <title>二级目录列表</title> 
  <base target="_self" />
</head>
<body>
<div id="content">
	<h3 class="admin_link_bar">
		<jsp:include page="incdetails.jsp"></jsp:include>
	</h3>
	<table width="800" cellspacing="0" cellPadding="0" id="listTable">
		<thead>
		<tr>
		<td>编号</td>
		<td>选择</td>
		<td>标题</td>
		<td>类别</td>
		<td>子类别</td>
		<td>来源</td>
	
		<td>是否首页显示</td>
		<td>发布人</td>
		<td>操作</td>
		</tr>
		</thead>
		<tbody>
		<c:forEach var="list" items="${datas.datas}"> 
				<tr> 	
			     	<td>${list.channelDetailsId }</td>
			     	<td><input type="checkbox" name="selectc" value="${list.channelDetailsId }"></td>
					<td>${list.channelDetailsTitle}</td>
					<td>${list.channel.parent.name}</td>
					<td>${list.channel.name}</td> 
					
					<td>${list.channelDetailsFrom}</td>
					
					<td>${list.channelDetailsFrom}
						<c:choose>
							<c:when test="${list.channelDetailsIshome==1}">
								是
							</c:when>
							<c:otherwise>
								否
							</c:otherwise>
						</c:choose>
					</td>					
					<td>${list.channelDetailsCreateName}</td>
					<td>
					<a href="show/${list.channelDetailsId}" class="list_op">查看</a>
					<a href="toUpdate/${list.channelDetailsId}" class="list_op">修改</a>
					<a href="delete/${list.channelDetailsId}" onclick="return confirm('你确定要删除该记录吗？');"  class="list_op">删除</a>
					</td>
  				</tr>
		</c:forEach>
		</tbody>
		<tfoot>
		<tr>
			<td colspan="9" style="text-align:right;margin-right:10px;">
			<jsp:include page="/jsp/pager.jsp">
				<jsp:param value="${datas.total }" name="totalRecord"/>
				<jsp:param value="initPage" name="url"/>
			</jsp:include>
			</td>
		</tr>
		</tfoot>
	</table>
</div>
</body>

</html>

